-- GENERATED SPELL FOR [Anub'ar Champion] --


function spell0_29117(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(53394,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29117', 5293, 1)
end

function spell1_29117(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(59344,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29117', 5343, 1)
end

function spell2_29117(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(53317,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29117', 15000, 1)
end

function spell3_29117(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(59343,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29117', 15000, 1)
end

function Sorts_29117(pUnit, Event)
local choix_sorts_29117 = math.random(0, 3)
if choix_sorts_29117 == 0 then
pUnit:RegisterEvent('spell0_29117', 1, 1)
end
if choix_sorts_29117 == 1 then
pUnit:RegisterEvent('spell1_29117', 1, 1)
end
if choix_sorts_29117 == 2 then
pUnit:RegisterEvent('spell2_29117', 1, 1)
end
if choix_sorts_29117 == 3 then
pUnit:RegisterEvent('spell3_29117', 1, 1)
end
end

function mob29117_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29117', math.random(1500, 3000), 1)
end

function mob29117_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29117_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29117_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29117, 1, 'mob29117_Action')
RegisterUnitEvent(29117, 2, 'mob29117_Leave')
RegisterUnitEvent(29117, 3, 'mob29117_Kill')
RegisterUnitEvent(29117, 4, 'mob29117_Die')
